%%% Author  : Kiran Khaladkar <kiran.khaladkar@geodesic.com>
%%% Description : This is a mod that enables ejabberd to serve as
%%%		support server
%%%
%%% Created :  2 May 2011 by my Kiran <kiran.khaladkar@geodesic.com>
%%%-------------------------------------------------------------------
-module(mod_support).

-behavior(gen_mod).

-include("ejabberd.hrl").

-export([start/2, stop/1, on_presence/4]).

start(Host, _Opts) ->
    	?INFO_MSG("mod_support starting", []),
    	ejabberd_hooks:add(set_presence_hook, Host, supportjam, on_presence, 50),
    	ok.

stop(Host) ->
    	?INFO_MSG("mod_support stopping", []),
    	ejabberd_hooks:delete(set_presence_hook, Host, supportjam, on_presence, 50),
    	ok.

